<?php

class NCore_Port_Filter_URL
{
	protected $re = '';
	
	function __construct($re)
	{
		if(!is_null($re))
		{
			$this->re = $re;
		}
		else
		{
			$this->re = N::REGEX_URL;
		}
	}

	public function filter($value)
	{
		return preg_match($this->re, $value);
	}
}

?>